HealthController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 8
ccs 2
cts 3
cp 0.6667
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A check 0 5 1
1 7
import { Controller, Get } from '@nestjs/common';
2
3
@Controller({ path: 'health', version: '1' })
4 7
export class HealthController {
5
  @Get()
6 7
  check() {
7
    return {
8
      status: 'ok',
9
      timestamp: new Date().toISOString(),
10
    };
11
  }
12
}
13